
import javax.microedition.lcdui.Graphics;


public abstract class Drawable {
    private float x;
    private float y;
    
    public abstract void draw(Graphics g);
    
     public void setPosition(float x, float y) {
        this.x = x;
        this.y = y;
    }

    public void move(float incx, float incy) {
        x += incx;
        y += incy;
    }

    public float getX() {
        return x;
    }

    public void setX(float x) {
        this.x = x;
    }

    public float getY() {
        return y;
    }

    public void setY(float y) {
        this.y = y;
    }
}
